$(function () {
    $('.tabbox .content ul').width(300 * $('.tabbox .content li').length + 'px');

    $(".tabbox .tab a").click(function () {
        $(this).addClass('on').siblings().removeClass('on');
        var index = $(this).index();
        number = index;
        var distance = -300 * index;
        $('.tabbox .content ul').stop().animate({
            left: distance
        });
        $('#error-phone-email').hide();
        $('#error-password').hide();
        $('#error-phone').hide();
        $('#error-phone-password').hide();

        $('#error-email').hide();
        $('#error-email-password').hide();
        $('#error-email-code').hide();
        /*$('#error-phone').hide();
        $('#error-phone-password').hide();*/
        $('#error-phone-code').hide();
    });
});